package sgfRead;

import java.util.LinkedList;

import board.GoMove;

import com.gobaduchi.sgfutils.SGFTreeNode;

public class SGFPlayer {
	SGFReader sgfReader;
	SGFTreeNode root;
	//LinkedList<GoMove> lstMove=new LinkedList<GoMove>();
	public SGFPlayer(String sgf) {
		this.sgfReader = new SGFReader(sgf);
		this.sgfReader.doParseFile();
		this.root = sgfReader.getSGFTreeNode();
		//this.parseMoveList();
	}



	public static void main(String[] args) {
		SGFPlayer player = new SGFPlayer(null);
		player.doTest();
	}

	private void doTest() {
		String filename = "2011-01-01-8.sgf";
		this.sgfReader = new SGFReader(filename);
		this.sgfReader.doParseFile();
		this.root = sgfReader.getSGFTreeNode();
		GameInfos pro = this.sgfReader.getGameInfos();
		pro.print();
	}

	public SgfPosition getNextMove() {
		return this.sgfReader.getNextMove();
	}

	public SgfPosition getBackMove() {
		return this.sgfReader.getBackMove();
	}

	public int getBoardType() {
		return this.sgfReader.getBoardType();

	}
}
